package com.laicunba.pojo;

import java.math.BigDecimal;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

@MyTable
@Component
public class SharedPacketItemDO extends BaseDO {

	private String packetId;
	private String mobile;
	private String uid;
	private BigDecimal amount;
	@MyColumn(type = "bool DEFAULT false")
	private boolean used;

	public void setUsed(boolean used) {
		this.used = used;
	}

	public boolean isUsed() {
		return used;
	}

	public String getPacketId() {
		return packetId;
	}

	public String getMobile() {
		return mobile;
	}

	public String getUid() {
		return uid;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setPacketId(String packetId) {
		this.packetId = packetId;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	@Override
	public String toString() {
		return "SharedPacketItemDO [packetId=" + packetId + ", mobile=" + mobile + ", uid=" + uid + ", amount=" + amount + "]";
	}

}
